package com.lsa.letcode.the15.the3sum;

public class TestCaseProcessor {
	public static void main(String[] args) {
		String s = "{-6,2,4}, {-5,1,4}, {-5,2,3}";
		String[] parts = s.split("[{} ]");
		System.out.print("Arrays.asList(");
		for (String p : parts) {
			String trim = p.trim();
			if (trim.length() == 0 || ",".equals(trim)) continue;
			System.out.print(String.format("Arrays.asList(%s), ",trim));
		}
		System.out.print(");");
	}
}
